DimenPerimeterSp

EN Utility object for handling SSP (Scalable Sp) dimensions from Java.

PT Objeto utilitário para manipulação de dimensões SSP (Scalable Sp) no Java.

Functions

Link copied to clipboard
fun getDimensionInPx(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (PX). PT Função de escala genérica para Java (PX).

Link copied to clipboard
fun getDimensionInSp(context: Context, qualifier: DpQualifier, value: Int, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Generic scaling function for Java (SP value). PT Função de escala genérica para Java (valor SP).

Link copied to clipboard
fun hei(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale.

Link copied to clipboard
fun heia(context: Context, value: Int): Float
Link copied to clipboard
fun heii(context: Context, value: Int): Float
Link copied to clipboard
fun heiia(context: Context, value: Int): Float
Link copied to clipboard
fun hemLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, landscape is Screen Width.

Link copied to clipboard
fun hemLwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemLwia(context: Context, value: Int): Float
Link copied to clipboard
fun hemPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height without font scale, portrait is Screen Width.

Link copied to clipboard
fun hemPwa(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwi(context: Context, value: Int): Float
Link copied to clipboard
fun hemPwia(context: Context, value: Int): Float
Link copied to clipboard
fun prhsp(context: Context, value: Int): Float

EN Quick resolution for Screen Height (prhsp). PT Resolução rápida para Altura da Tela (prhsp).

Link copied to clipboard
fun prhspa(context: Context, value: Int): Float
Link copied to clipboard
fun prhspi(context: Context, value: Int): Float
Link copied to clipboard
fun prhspia(context: Context, value: Int): Float
Link copied to clipboard
fun prhspLw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (prhsp), but in landscape orientation it acts as Screen Width (prwsp).

Link copied to clipboard
fun prhspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun prhspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun prhspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun prhspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (prhsp) with UiModeType override.

Link copied to clipboard
fun prhspPw(context: Context, value: Int): Float

EN Quick resolution for Screen Height (prhsp), but in portrait orientation it acts as Screen Width (prwsp).

Link copied to clipboard
fun prhspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun prhspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun prhspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun prhspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) conditional scaling.

Link copied to clipboard
fun prhspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.HEIGHT, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Height (prhsp) with rotation override.

Link copied to clipboard
fun prhspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Height (hSP) context conditional scaling.

Link copied to clipboard
fun prssp(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (prssp). PT Resolução rápida para Smallest Width (prssp).

Link copied to clipboard
fun prsspa(context: Context, value: Int): Float
Link copied to clipboard
fun prsspi(context: Context, value: Int): Float
Link copied to clipboard
fun prsspia(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (prssp), but in landscape orientation it acts as Screen Height (prhsp).

Link copied to clipboard
fun prsspLha(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (prssp), but in landscape orientation it acts as Screen Width (prwsp).

Link copied to clipboard
fun prsspLwa(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLwi(context: Context, value: Int): Float
Link copied to clipboard
fun prsspLwia(context: Context, value: Int): Float
Link copied to clipboard
fun prsspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (prssp) with UiModeType override.

Link copied to clipboard
fun prsspPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (prssp), but in portrait orientation it acts as Screen Height (prhsp).

Link copied to clipboard
fun prsspPha(context: Context, value: Int): Float
Link copied to clipboard
fun prsspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun prsspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun prsspPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (prssp), but in portrait orientation it acts as Screen Width (prwsp).

Link copied to clipboard
fun prsspPwa(context: Context, value: Int): Float
Link copied to clipboard
fun prsspPwi(context: Context, value: Int): Float
Link copied to clipboard
fun prsspPwia(context: Context, value: Int): Float
Link copied to clipboard
fun prsspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) conditional scaling.

Link copied to clipboard
fun prsspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.SMALL_WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Smallest Width (prssp) with rotation override.

Link copied to clipboard
fun prsspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Smallest Width (swSP) context conditional scaling.

Link copied to clipboard
fun prwemPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun prwemPha(context: Context, value: Int): Float
Link copied to clipboard
fun prwemPhi(context: Context, value: Int): Float
Link copied to clipboard
fun prwemPhia(context: Context, value: Int): Float
Link copied to clipboard
fun prwsp(context: Context, value: Int): Float

EN Quick resolution for Screen Width (prwsp). PT Resolução rápida para Largura da Tela (prwsp).

Link copied to clipboard
fun prwspa(context: Context, value: Int): Float
Link copied to clipboard
fun prwspi(context: Context, value: Int): Float
Link copied to clipboard
fun prwspia(context: Context, value: Int): Float
Link copied to clipboard
fun prwspLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (prwsp), but in landscape orientation it acts as Screen Height (prhsp).

Link copied to clipboard
fun prwspLha(context: Context, value: Int): Float
Link copied to clipboard
fun prwspLhi(context: Context, value: Int): Float
Link copied to clipboard
fun prwspLhia(context: Context, value: Int): Float
Link copied to clipboard
fun prwspMode(context: Context, value: Int, modeValue: Number, uiModeType: UiModeType, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (prwsp) with UiModeType override.

Link copied to clipboard
fun prwspPh(context: Context, value: Int): Float

EN Quick resolution for Screen Width (prwsp), but in portrait orientation it acts as Screen Height (prhsp).

Link copied to clipboard
fun prwspPha(context: Context, value: Int): Float
Link copied to clipboard
fun prwspPhi(context: Context, value: Int): Float
Link copied to clipboard
fun prwspPhia(context: Context, value: Int): Float
Link copied to clipboard
fun prwspQualifier(context: Context, value: Int, qualifiedValue: Number, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) conditional scaling.

Link copied to clipboard
fun prwspRotate(context: Context, value: Int, rotationValue: Number, finalQualifierResolver: DpQualifier = DpQualifier.WIDTH, orientation: Orientation = Orientation.LANDSCAPE, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Facilitator for Screen Width (prwsp) with rotation override.

Link copied to clipboard
fun prwspScreen(context: Context, value: Int, screenValue: Number, uiModeType: UiModeType, qualifierType: DpQualifier, qualifierValue: Number, finalQualifierResolver: DpQualifier? = null, fontScale: Boolean = true, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float

EN Quick resolution for Screen Width (wSP) context conditional scaling.

Link copied to clipboard
fun scaled(initialBaseValue: Float): PerimeterSp

EN Starts the build chain for the custom dimension PerimeterSp from a base Float. PT Inicia a cadeia de construção para a dimensão customizada PerimeterSp a partir de um Float base.

fun scaled(initialBaseValue: Int): PerimeterSp

EN Starts the build chain for the custom dimension PerimeterSp from a base Int. PT Inicia a cadeia de construção para a dimensão customizada PerimeterSp a partir de um Int base.

Link copied to clipboard
fun sei(context: Context, value: Int): Float

EN Quick resolution for Smallest Width (sei) - Without font scale. PT Resolução rápida para Smallest Width (sei) - Sem escala de fonte.

Link copied to clipboard
fun seia(context: Context, value: Int): Float
Link copied to clipboard
fun seii(context: Context, value: Int): Float
Link copied to clipboard
fun seiia(context: Context, value: Int): Float
Link copied to clipboard
fun semLh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun semLha(context: Context, value: Int): Float
Link copied to clipboard
fun semLhi(context: Context, value: Int): Float
Link copied to clipboard
fun semLhia(context: Context, value: Int): Float
Link copied to clipboard
fun semLw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, landscape is Screen Width.

Link copied to clipboard
fun semLwa(context: Context, value: Int): Float
Link copied to clipboard
fun semLwi(context: Context, value: Int): Float
Link copied to clipboard
fun semLwia(context: Context, value: Int): Float
Link copied to clipboard
fun semPh(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Height.

Link copied to clipboard
fun semPha(context: Context, value: Int): Float
Link copied to clipboard
fun semPhi(context: Context, value: Int): Float
Link copied to clipboard
fun semPhia(context: Context, value: Int): Float
Link copied to clipboard
fun semPw(context: Context, value: Int): Float

EN Quick resolution for Smallest Width without font scale, portrait is Screen Width.

Link copied to clipboard
fun semPwa(context: Context, value: Int): Float
Link copied to clipboard
fun semPwi(context: Context, value: Int): Float
Link copied to clipboard
fun semPwia(context: Context, value: Int): Float
Link copied to clipboard

EN Eagerly initializes DimenCache (persistence / DataStore) so the first resolution on a hot path avoids lazy-init work. PT Inicializa o DimenCache antecipadamente para evitar custo lazy no primeiro uso.

Link copied to clipboard
fun wei(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale.

Link copied to clipboard
fun weia(context: Context, value: Int): Float
Link copied to clipboard
fun weii(context: Context, value: Int): Float
Link copied to clipboard
fun weiia(context: Context, value: Int): Float
Link copied to clipboard
fun wemLh(context: Context, value: Int): Float

EN Quick resolution for Screen Width without font scale, landscape is Screen Height.

Link copied to clipboard
fun wemLha(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhi(context: Context, value: Int): Float
Link copied to clipboard
fun wemLhia(context: Context, value: Int): Float